package com.xieyingwangluo.yxpart.entity;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
//import org.hibernate.validator.constraints.NotEmpty;


/**
 * demo的model，对应t_demo
 */
public class DemoModel {

    /**
     * 主键
     */
    
     private String noid;

     /**
      * 账号
      */
     @NotEmpty(message = "账号必须填写")
     @Length(min = 8, max = 16, message = "用户账号最长为16个中英文字符")
     private String user_code;
    /**
     * 密码
     */
    @NotEmpty(message = "密码必须填写")
    @Length(min = 8, max = 16, message = "用户密码最长为16个中英文字符")
    private String pwd;

    public DemoModel() {
    }

    public DemoModel(@NotEmpty(message = "主键必须填写") String noid, @NotEmpty(message = "账号必须填写") @Length(min = 8, max = 16, message = "用户账号最长为16个中英文字符") String user_code, @NotEmpty(message = "密码必须填写") @Length(min = 8, max = 16, message = "用户密码最长为16个中英文字符") String pwd) {
        this.noid = noid;
        this.user_code = user_code;
        this.pwd = pwd;
    }

    public String getNoid() {
        return noid;
    }

    public void setNoid(String noid) {
        this.noid = noid;
    }

    public String getUser_code() {
        return user_code;
    }

    public void setUser_code(String user_code) {
        this.user_code = user_code;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "DemoModel{" +
                "noid='" + noid + '\'' +
                ", user_code='" + user_code + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
